home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / emacssrc.zip / EMACSSRC.TAR / emacs-19.17 / vms / compile.com < prev    next >
Text File  |  1993-08-27  |  4KB  |  139 lines

  1. $ set noverify
  2. $!
  3. $! VMS command file to recompile all Emacs .C files which need recompilation.
  4. $! These are all .C files that have no .OBJ files or that are newer then the
  5. $! corresponding .OBJ files.  This file is self contained and does not require
  6. $! you to do anything before running it.
  7. $!
  8. $! Arguments
  9. $!   P1 any value forces recompilation of all .C files
  10. $!
  11. $! History
  12. $!   Mukesh Prasad    18 Nov 1985
  13. $!     original version
  14. $!   Roland Roberts    30 Oct 1992    roberts@nsrl31.nsrl.rochester.edu
  15. $!     subsidiary file ccom.com rolled into this version.
  16. $!     allows default directory to be a search list (done in precomp.com)
  17. $!       however, should normally be executed from [.vms] with no search list.
  18. $!     added (restored?) option to force recompilation.
  19. $!    
  20. $ if p1 .eqs. "" 
  21. $ then force = 0
  22. $ else force = 1
  23. $ endif
  24. $ @precomp
  25. $ olddef = f$environment("DEFAULT")
  26. $ if f$locate(".VMS]",olddef) .ne. f$length(olddef) .or. -
  27.     f$locate("[VMS]",olddef) .ne. f$length(olddef) then -
  28.     set default [-.oldxmenu]
  29. $ mms/ignore=w
  30. $ set def [-.src]
  31. $ write sys$output "---------------"
  32. $!
  33. $! If there is any need for a listing file (foo.LIS), do the call like this:
  34. $!
  35. $!    $ call recomp foo.c "''ccom' /list/show=include"
  36. $!
  37. $ call recomp dispnew.c
  38. $ call recomp frame.c
  39. $ call recomp scroll.c
  40. $ call recomp xdisp.c
  41. $ call recomp window.c
  42. $ call recomp term.c
  43. $ call recomp cm.c
  44. $! The following files are not needed if you don't want to compile for X
  45. $ call recomp xterm.c
  46. $ call recomp xfns.c
  47. $ call recomp xfaces.c
  48. $ call recomp xmenu.c
  49. $ call recomp xselect.c
  50. $ call recomp xrdb.c
  51. $! End of X files
  52. $ call recomp emacs.c
  53. $ call recomp keyboard.c
  54. $ call recomp macros.c
  55. $ call recomp keymap.c
  56. $ call recomp sysdep.c
  57. $ call recomp buffer.c
  58. $ call recomp filelock.c
  59. $ call recomp insdel.c
  60. $ call recomp marker.c
  61. $ call recomp intervals.c
  62. $ call recomp textprop.c
  63. $ call recomp minibuf.c
  64. $ call recomp fileio.c
  65. $ call recomp dired.c
  66. $ call recomp filemode.c
  67. $ call recomp cmds.c
  68. $ call recomp casetab.c
  69. $ call recomp casefiddle.c
  70. $ call recomp indent.c
  71. $ call recomp search.c
  72. $ call recomp regex.c
  73. $ call recomp undo.c
  74. $ call recomp alloc.c
  75. $ call recomp data.c
  76. $ call recomp doc.c
  77. $ call recomp editfns.c
  78. $ call recomp callint.c
  79. $ call recomp eval.c
  80. $ call recomp floatfns.c
  81. $ call recomp fns.c
  82. $ call recomp print.c
  83. $ call recomp lread.c
  84. $ call recomp abbrev.c
  85. $ call recomp syntax.c
  86. $ call recomp mocklisp.c
  87. $ call recomp bytecode.c
  88. $ call recomp process.c
  89. $ call recomp callproc.c
  90. $ call recomp doprnt.c
  91. $ call recomp getloadavg.c
  92. $ call recomp vmsfns.c
  93. $ call recomp vmsproc.c
  94. $ call recomp vmsmap.c
  95. $ call recomp termcap.c
  96. $ call recomp tparam.c
  97. $ call recomp lastfile.c
  98. $ call recomp vmstime.c
  99. $ call recomp vmsgmalloc.c
  100. $! call recomp ralloc.c        ! This one doesn't work. In the near future
  101. $                ! it won't be needed.
  102. $ call recomp vm-limit.c
  103. $ call recomp alloca.c
  104. $ set default 'olddef'
  105. $ exit
  106. $!
  107. $! VMS subroutine file to recompile a .C file which needs recompilation.
  108. $! This is a .C files that has no .OBJ file or that is newer
  109. $! than the corresponding .OBJ file.  This file is self contained
  110. $! and does not require you to do anything before running it.
  111. $!
  112. $ recomp: subroutine
  113. $ on error then continue
  114. $ file = f$search(p1,1)
  115. $ cmd  = p2
  116. $ if cmd .eqs. "" 
  117. $ then
  118. $   if "''ccom'" .eqs. "" then call precomp
  119. $   cmd = "ccom"
  120. $ endif
  121. $ name = f$parse(file,,,"NAME")
  122. $ obj  = name + ".OBJ"
  123. $ if (f$search(obj) .nes. "") .and. (.not. force)
  124. $ then
  125. $   if f$cvtime(f$file(file,"RDT")) .les. f$cvtime(f$file(obj,"RDT")) then -
  126.     goto sub_exit
  127. $ endif
  128. $ obj = f$parse(file,,,"DEVICE") + f$parse(file,,,"DIRECTORY") + obj
  129. $ write sys$output "Compiling ''name'..."
  130. $ on error then goto error_exit
  131. $ 'cmd' 'file' /object='obj'
  132. $ if f$search(obj) .nes. "" then purge /nolog 'obj'
  133. $error_exit:
  134. $ write sys$output "---------------"
  135. $sub_exit:
  136. $ exit
  137. $!
  138. $ endsubroutine
  139.